/**
 * @program: yygh_parent
 * @ClassName DictFeignClient
 * @description:
 * @author: zyw
 * @create: 2023-05-26 09:44
 * @Version 1.0
 **/
package com.atguigu.yygh.cmn.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-cmn")
public interface DictFeignClient {

    @GetMapping(value = "/admin/cmn/dict/{value}")
    public String getNameByValue(@PathVariable(value = "value") Long value);

    @GetMapping(value = "/admin/cmn/dict/{dictCode}/{value}")
    public String getNameByValueAndDictCode(
            @PathVariable(value = "value") Long value,
            @PathVariable(value = "dictCode") String dictCode) ;

}
 
